package cn.parus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Author: Axel
 * @Description: TODO 文件共享链接拓展表
 **/
@Data
@TableName("file_share_link")
public class FileShareLink {
    @TableId(value = "file_share_link_id", type = IdType.ASSIGN_UUID)
    private String fileShareLinkId;

    @TableField("file_id")
    private String fileId;

    @TableField("expires_at")
    private String expiresAt;

    @TableField("extract_code")
    private String extractCode;

    @TableField("owner_id")
    private String ownerId;

    @TableField("created_at")
    private String createdAt;

    @TableField("link")
    private String link;

    @TableField("file_name")
    private String fileName;

    // 临时字段，用于接收传入的过期天数（非数据库字段）
    @TableField(exist = false)
    private Integer expireDays;
}
